package cn.curtain.girl.utils;

import cn.curtain.girl.domain.Girl;
import cn.curtain.girl.domain.Result;

public class ResultUtil {

    public static Result fail(Integer code, String msg) {
        Result girlResult = new Result();
        girlResult.setCode(code);
        girlResult.setMsg(msg);
        girlResult.setData(null);
        return girlResult;
    }

    public static Result success() {
        Result girlResult = new Result();
        girlResult.setCode(0);
        girlResult.setMsg("成功");
        girlResult.setData(null);
        return girlResult;
    }

    public static Result success(Object object) {
        Result girlResult = new Result();
        girlResult.setCode(0);
        girlResult.setMsg("成功");
        girlResult.setData(object);
        return girlResult;
    }

}
